package net.biancheng.po;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class Course {
    private int courseno;
    private int pri;//单独优先级5-10
    private List<Integer> teacherNo=new ArrayList<>();
    private int type = 10;//课程类型，优先级为10-20
    private int nature = 0;//课程类型：理论、实践
    public Course(){

    }

    public int getCourseno() {
        return courseno;
    }

    public void setCourseno(int courseno) {
        this.courseno = courseno;
    }

    public int getPri() {
        return pri;
    }

    public void setPri(int pri) {
        this.pri = pri;
    }

//    public void setTeacherN(int n) {//设置教师数
//        teacherNo = new int[n];
//    }

    public List<Integer> getTeacherNo() {
        return teacherNo;
    }

    public void setTeacherNo(List<Integer> teacherNo) {
        this.teacherNo = teacherNo;
    }

    public void setTeacherNo(int x,int teacherNo) {
        this.teacherNo.add(x,teacherNo);
    }//设置教师编号

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getNature() {
        return nature;
    }

    public void setNature(int nature) {
        this.nature = nature;
    }

    @Override
    public String toString() {
        return "Course{" +
                "courseno=" + courseno +
                ", pri=" + pri +
                ", teacherNo=" + teacherNo +
                ", type=" + type +
                ", nature=" + nature +
                '}';
    }
}
